package com.wen.mall.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * (MallCategory)实体类
 *
 * @author makejava
 * @since 2021-08-12 11:06:30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor


public class Category implements Serializable {
    private static final long serialVersionUID = -43453694542570390L;
    /**
     * 类别Id
     */

    private Integer id;

    /**
     * 父类别id当id=0时说明是根节点,一级类别
     */

    private Integer parentId;

    /**
     * 类别名称
     */

    private String name;

    /**
     * 类别状态1-正常,2-已废弃
     */

    private Integer status;

    /**
     * 排序编号,同类展示顺序,数值相等则自然排序
     */

    private Integer sortOrder;

    /**
     * 创建时间
     */

    private Date createTime;


    /**
     * 更新时间
     */

    private Date updateTime;

    private List<Category> subCategories=new ArrayList<>();

}
